Skip to content

[RuntimeDyld][Windows] Allocate space for dllimport things. #9071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

al45tair
Copy link

@al45tair al45tair commented Aug 8, 2024

We weren't taking account of the space we require in the stubs for things that are dllimported, and as a result we could hit the assertion failure for running out of stub space. Fix that.

rdar://133473673

We weren't taking account of the space we require in the stubs for
things that are `dllimport`ed, and as a result we could hit the
assertion failure for running out of stub space.  Fix that.

rdar://133473673
@al45tair al45tair requested review from compnerd and lhames August 8, 2024 17:57
@al45tair
Copy link
Author

al45tair commented Aug 8, 2024

@swift-ci Please test

@al45tair
Copy link
Author

al45tair commented Aug 8, 2024

This is going to need cherry picking to next and also upstream.

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please send this upstream as well.

@compnerd
Copy link
Member

compnerd commented Aug 8, 2024

Would also be nice to pull this into release/6.0 as it should be very low risk and enables better parity.

@al45tair
Copy link
Author

al45tair commented Aug 8, 2024

@swift-ci Please test

@al45tair
Copy link
Author

al45tair commented Aug 9, 2024

@swift-ci Please test macOS platform

@al45tair
Copy link
Author

al45tair commented Aug 9, 2024

@swift-ci Please test Windows platform

@al45tair
Copy link
Author

al45tair commented Aug 9, 2024

(The macOS failure was some spurious Jenkins problem.)

No need for `TargetName` to exist separately, really.

Co-authored-by: Saleem Abdulrasool <[email protected]>
@al45tair
Copy link
Author

al45tair commented Aug 9, 2024

@swift-ci Please test

@al45tair al45tair merged commit 4c205ed into swiftlang:stable/20230725 Aug 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants